<?php echo $this->Session->flash(); ?>
<table id="tabla" class="tabla" >
    <thead>
        <tr>
            <th>ID </th>
            <th>TEXTO</th>
            <th>TIPO</th>
            <th colspan="3">OPCIONES</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($requisitos as $rec): ?>
            <tr>
               
                <td><?php echo $rec['Requirement']['id'] ?></td>
                <td><?php echo $rec['Requirement']['texto'] ?></td>
                <td><?php echo $rec['Requirement']['tipo'] ?></td>
                <td><?php echo $this->Ajax->link('Ver restricciones', array('controller' => 'RequirementFaults', 'action' => 'index', $rec['Requirement']['id']), array('update' => 'content', 'complete' => 'cargar()')) ?></td>
                <td><?php echo $this->Ajax->link('Editar', array('controller' => 'Requirements', 'action' => 'edit', $rec['Requirement']['id']), array('update' => 'content', 'complete' => 'cargar()')) ?></td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php echo "<br>"; ?>
<table>
    <tbody>
        <tr>
            <td><?php echo $this->Ajax->link('ADICIONAR REQUISITO', array('controller' => 'Requirements', 'action' => 'add',$call_id), array('update' => 'content', 'complete' => 'caargar()')) ?></td>
        </tr>
    </tbody>
</table>





